#-------------------------------------------------
#
# Project created by QtCreator 2024-07-26T14:06:41
#
#-------------------------------------------------

QT       -= gui

TARGET = polkit-qt4
TEMPLATE = lib

DEFINES += POLKITQT_LIBRARY

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        polkitqt.cpp \
    core/polkitqt1-subject.cpp \
    core/polkitqt1-identity.cpp \
    core/polkitqt1-details.cpp \
    core/polkitqt1-authority.cpp \
    core/polkitqt1-actiondescription.cpp \
    core/polkitqt1-temporaryauthorization.cpp

HEADERS += \
        polkitqt.h \
        polkit-qt_global.h \ 
    core/polkitqt1-subject.h \
    core/polkitqt1-identity.h \
    core/polkitqt1-details.h \
    core/polkitqt1-authority.h \
    core/polkitqt1-actiondescription.h \
    core/polkitqt1-temporaryauthorization.h

unix {
    target.path =  $$[QT_INSTALL_LIBS]
    INSTALLS += target
}

dev_file1.files=$$PWD/*.h
dev_file1.path=/usr/include/polkit-qt4
dev_file2.files=$$PWD/core/*.h
dev_file2.path=/usr/include/polkit-qt4/core

pc_file.files=$$PWD/$${TARGET}.pc
pc_file.path=$$[QT_INSTALL_LIBS]/pkgconfig

INSTALLS += dev_file1 dev_file2 pc_file

PKGCONFIG += polkit-gobject-1
CONFIG += qt no_keywords link_pkgconfig create_pc create_prl no_install_prl
